package stool.observerpattern.part2;

import java.time.LocalDateTime;

/**
 * @Author Felix YF Dong
 * @Date 2021/5/7
 */
public class Main {

    public static void main(String[] args) {

        Notifier notifier = new ConcreteNotifier();

        HandleOneListener listener = new HandleOneListener();

        notifier.addListener(listener, "stopHandleOne", LocalDateTime.now());

        notifier.notifyX();
    }
}
